package com.haixiaoke.saas.order.service.impl;

import java.util.List;

import com.haixiaoke.saas.order.domain.WechatPayRecord;
import com.haixiaoke.saas.order.mapper.WechatPayRecordMapper;
import com.haixiaoke.saas.order.service.IWechatPayRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 支付回调数据记录Service业务层处理
 * 
 * @author panda
 * @date 2024-04-24
 */
@Service
public class WechatPayRecordServiceImpl implements IWechatPayRecordService {
    @Autowired
    private WechatPayRecordMapper wechatPayRecordMapper;

    /**
     * 查询支付回调数据记录
     * 
     * @param id 支付回调数据记录主键
     * @return 支付回调数据记录
     */
    @Override
    public WechatPayRecord selectWechatPayRecordById(Long id) {
        return wechatPayRecordMapper.selectWechatPayRecordById(id);
    }

    /**
     * 查询支付回调数据记录列表
     * 
     * @param wechatPayRecord 支付回调数据记录
     * @return 支付回调数据记录
     */
    @Override
    public List<WechatPayRecord> selectWechatPayRecordList(WechatPayRecord wechatPayRecord) {
        return wechatPayRecordMapper.selectWechatPayRecordList(wechatPayRecord);
    }

    /**
     * 新增支付回调数据记录
     * 
     * @param wechatPayRecord 支付回调数据记录
     * @return 结果
     */
    @Override
    public int insertWechatPayRecord(WechatPayRecord wechatPayRecord) {
        return wechatPayRecordMapper.insertWechatPayRecord(wechatPayRecord);
    }

    /**
     * 修改支付回调数据记录
     * 
     * @param wechatPayRecord 支付回调数据记录
     * @return 结果
     */
    @Override
    public int updateWechatPayRecord(WechatPayRecord wechatPayRecord) {
        return wechatPayRecordMapper.updateWechatPayRecord(wechatPayRecord);
    }

    /**
     * 批量删除支付回调数据记录
     * 
     * @param ids 需要删除的支付回调数据记录主键
     * @return 结果
     */
    @Override
    public int deleteWechatPayRecordByIds(Long[] ids) {
        return wechatPayRecordMapper.deleteWechatPayRecordByIds(ids);
    }

    /**
     * 删除支付回调数据记录信息
     * 
     * @param id 支付回调数据记录主键
     * @return 结果
     */
    @Override
    public int deleteWechatPayRecordById(Long id) {
        return wechatPayRecordMapper.deleteWechatPayRecordById(id);
    }
}
